#include "mxsetup.h"

#ifdef USE_KPROCESS
SRCDIRS		+= $(ROOTPATH)/kprocess
INCDIRS		+= $(ROOTPATH)/kprocess

KAPP_SRCDIRS    += $(ROOTPATH)/kprocess/kapp
KAPP_INCDIRS    += $(ROOTPATH)/kprocess/kapp

#ifdef MXSETUP_KAPP_TYPE_DYN
KAPP_CFLAGS     += -c -nostdlib -fPIC
KAPP_SFLAGS     += -c -nostdlib -fPIC
KAPP_LFLAGS     += -shared -T$(BOARDPATH)/meta/kprocess/link.lds -T$(BOARDPATH)/build/$(TARGET).sym
#endif /* MXSETUP_KAPP_TYPE_DYN */

#if (MX_CPU_BITWIDE == 64)
IGNORES     += $(ROOTPATH)/kprocess/elfloader_rel32.c
#elif (MX_CPU_BITWIDE == 32)
IGNORES     += $(ROOTPATH)/kprocess/elfloader_rel64.c
#endif

#endif /* USE_KPROCESS */

IGNORES		+= $(ROOTPATH)/kprocess/config.mk.meta.S
IGNORES		+= $(ROOTPATH)/kprocess/link.lds.meta.S
